
import http from '@/utils/http'



export const userRegister = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/user/register`,
        data,
    })
}


export const userLogin = (data) => {
    return http({
        method: 'post',
        url: `/fitasty/api/user/login`,
        data,
    })
}

// 发送邮箱验证链接
export const sendEmail = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/email/clickCheckUrl`,
        params,
    })
}

// 获取邮件验证码
export const getEmailCode = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/email/code`,
        params,
    })
}


// 重置密码
export const resetPassword = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/email/resetPassword`,
        params,
    })
}

// 送忘记密码邮件
export const sendValidationEmail = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/email/sendValidationEmail`,
        params,
    })
}
